home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Graphics Programming (2nd Edition)
/
Visual Basic Graphics Programming 2nd Edition.iso
/
Src
/
Ch1
/
TestSwin.frm
< prev
next >
Wrap
Text File
|
1999-04-17
|
4KB
|
127 lines
VERSION 5.00
Object = "*\ASwin.vbp"
Begin VB.Form frmTestSwin
Caption = "TestSwin"
ClientHeight = 4050
ClientLeft = 60
ClientTop = 345
ClientWidth = 5580
LinkTopic = "Form1"
ScaleHeight = 4050
ScaleWidth = 5580
StartUpPosition = 3 'Windows Default
Begin Project2.ScrolledWindow swinMarble
Height = 2175
Index = 0
Left = 120
TabIndex = 0
Top = 120
Width = 2415
_ExtentX = 4260
_ExtentY = 3836
Begin VB.PictureBox picMarble
AutoSize = -1 'True
Height = 6105
Index = 0
Left = 240
Picture = "TestSwin.frx":0000
ScaleHeight = 6045
ScaleWidth = 6225
TabIndex = 1
Top = 240
Width = 6285
End
End
Begin Project2.ScrolledWindow swinMarble
Height = 2175
Index = 1
Left = 2640
TabIndex = 2
Top = 120
Width = 2415
_ExtentX = 4260
_ExtentY = 3836
Begin VB.PictureBox picMarble
AutoSize = -1 'True
Height = 6105
Index = 1
Left = 240
Picture = "TestSwin.frx":7ACE2
ScaleHeight = 6045
ScaleWidth = 6225
TabIndex = 3
Top = 240
Width = 6285
End
End
Begin Project2.ScrolledWindow swinMarble
Height = 2175
Index = 2
Left = 120
TabIndex = 4
Top = 2400
Width = 2415
_ExtentX = 4260
_ExtentY = 3836
Begin VB.PictureBox picMarble
AutoSize = -1 'True
Height = 6105
Index = 2
Left = 240
Picture = "TestSwin.frx":F59C4
ScaleHeight = 6045
ScaleWidth = 6225
TabIndex = 5
Top = 240
Width = 6285
End
End
Begin Project2.ScrolledWindow swinMarble
Height = 2175
Index = 3
Left = 2640
TabIndex = 6
Top = 2400
Width = 2415
_ExtentX = 4260
_ExtentY = 3836
Begin VB.PictureBox picMarble
AutoSize = -1 'True
Height = 6105
Index = 3
Left = 240
Picture = "TestSwin.frx":1706A6
ScaleHeight = 6045
ScaleWidth = 6225
TabIndex = 7
Top = 240
Width = 6285
End
End
End
Attribute VB_Name = "frmTestSwin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
' Move the picture into the upper left corner.
' It's not there at design time to make it easier
' to see the ScrolledWindow control.
Private Sub Form_Load()
Dim i As Integer
For i = 0 To 3
picMarble(i).Move 0, 0
picMarble(i).BorderStyle = vbBSNone
Next i
End Sub
Private Sub Form_Resize()
swinMarble(0).Move 0, 0, ScaleWidth / 2, ScaleHeight / 2
swinMarble(1).Move ScaleWidth / 2, 0, ScaleWidth / 2, ScaleHeight / 2
swinMarble(2).Move 0, ScaleHeight / 2, ScaleWidth / 2, ScaleHeight / 2
swinMarble(3).Move ScaleWidth / 2, ScaleHeight / 2, ScaleWidth / 2, ScaleHeight / 2
End Sub